package com.luych.userCenter.entity;

import java.io.Serializable;
import java.util.Date;

public class RoleInfo implements Serializable {
    private String roleId;

    private String roleName;

    private Date createDate;

    private Date updateDate;

    private static final long serialVersionUID = 1L;

    public RoleInfo(String roleId, String roleName, Date createDate, Date updateDate) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public RoleInfo() {
        super();
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId == null ? null : roleId.trim();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roleId=").append(roleId);
        sb.append(", roleName=").append(roleName);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}